package com.example.cms.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;


public class Customer implements Serializable{
	private Integer customerId;
	private String customerName;
	private String customerCompany;
	private String customerAddre;
	private Date customerDate;
	private String customerPhone;
	private Integer customerState;//0表示删除，1表示正常
	private List<Order> orders;
	private  List<FeedBack> feedBacks;
	private  Integer pageSize;

	public List<FeedBack> getFeedBacks() {
		return feedBacks;
	}

	public void setFeedBacks(List<FeedBack> feedBacks) {
		this.feedBacks = feedBacks;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCustomerId() {
		return customerId;
	}
	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCustomerCompany() {
		return customerCompany;
	}
	public void setCustomerCompany(String customerCompany) {
		this.customerCompany = customerCompany;
	}
	public String getCustomerAddre() {
		return customerAddre;
	}
	public void setCustomerAddre(String customerAddre) {
		this.customerAddre = customerAddre;
	}
	public Date getCustomerDate() {
		return customerDate;
	}
	public void setCustomerDate(Date customerDate) {
		this.customerDate = customerDate;
	}
	public String getCustomerPhone() {
		return customerPhone;
	}
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	public Integer getCustomerState() {
		return customerState;
	}
	public void setCustomerState(Integer customerState) {
		this.customerState = customerState;
	}
	public List<Order> getOrders() {
		return orders;
	}
	public void setOrders(List<Order> orders) {
		this.orders = orders;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("Customer{");
		sb.append("customerId=").append(customerId);
		sb.append(", customerName='").append(customerName).append('\'');
		sb.append(", customerCompany='").append(customerCompany).append('\'');
		sb.append(", customerAddre='").append(customerAddre).append('\'');
		sb.append(", customerDate=").append(customerDate);
		sb.append(", customerPhone='").append(customerPhone).append('\'');
		sb.append(", customerState=").append(customerState);
		sb.append(", orders=").append(orders);
		sb.append(", feedBacks=").append(feedBacks);
		sb.append('}');
		return sb.toString();
	}
}
